import React from "react";
import { NavLink } from "umi";
import "./index.css";
import linkStyle from "@/assets/css/link.css";

export default function index(props) {
  return (
    <div>
      <div>
        <NavLink exact to="/">
          首页
        </NavLink>
        <NavLink activeClassName={linkStyle.active} to="/login">
          登录页
        </NavLink>
        <NavLink activeClassName={linkStyle.active} to="/welcome">
          欢迎页
        </NavLink>
        <NavLink activeClassName={linkStyle.active} to="/counter">
          计数器
        </NavLink>
      </div>
      <div>{props.children}</div>
    </div>
  );
}
